/*
* FileName: lb-render.vue
* Remark: 自定义render
* Project: lb-element-table
* Author: LiuBing
* File Created: Tuesday, 19th March 2019 10:15:30 am
* Last Modified: Tuesday, 19th March 2019 10:15:32 am
* Modified By: LiuBing
*/
<script>
    export default {
        name: 'LbRender',
        functional: true,
        data() {
            return {}
        },
        props: {
            scope: Object,
            render: Function
        },
        render: (h, ctx) => {
          // console.log(ctx.props)
            return ctx.props.render ? ctx.props.render(h,
                Object.assign({},ctx.props.scope,{value:ctx.props.scope.row[ctx.props.scope.column.property]})) : ''
        }
    }
</script>
